package com.sszh.base.controller.inf;

/**
 * @author XuGuang
 * @Title: UserControllerInf
 * @Package com.sszh.base.controller.inf
 * @Description: base控制层服务接口
 * @date 2018/3/522:40
 */
public interface UserControllerInf {
    /**
     *
     * @api {post} /sszh/login  登陆业务接口
     * @apiGroup Login
     * @apiName  登陆查询
     * @apiDescription  请求登陆接口
     * @apiVersion 1.0.0
     * @apiParam {String} timestamp 时间戳
     * @apiParam {String} data json数据
     * @apiParam (json){String} timestamp 时间戳
     * @apiParam (json){int} appid appid
     * @apiParam (json){String} account 帐号
     * @apiParam (json){String} password 密码MD5加密
     * @apiParamExample {json} Request-Example:
     * {"timestamp":"...","appid":100001,"posts":{"account":"admin","password":"e10adc3949ba59abbe56e057f20f883e"}}
     * @apiSuccess (200) {String} code 1 成功 0 失败 2 会话过期
     * @apiSuccess (200) {String} message 返回信息
     * @apiSuccess (200) {String} token token
     * @apiSuccess (200) {int} permission 权限标识
     * @apiSuccessExample {json} Success-Response:
     * {"code":1,"message":"测试成功","posts":{"token":"79faf82271944fe38c4f1d9apid9be71bc9c","permission":1}}
     * @apiSuccess (error Http状态码) 401 token错误或过期
     * @apiSuccess (error Http状态码) 402 签名错误
     * @apiSuccess (error Http状态码) 403 摘要错误
     */
    /**
     * 登录接口
     * @param timestamp
     * @param data
     * @return
     */
     String onLogin(String timestamp,String data);
}
